package com.yonyougov.devops.cruxcisupport.roleenv;

import com.yonyougov.devops.cruxcisupport.util.CruxDevOpsIdGenerator;
import com.yonyougov.devops.fwc.core.entity.BasicEntity;
import com.yonyougov.devops.fwc.core.id.IdGenerator;

import java.io.Serializable;
import java.math.BigInteger;

/***
 * t_role_env
 */
public class RoleEnvEntity extends BasicEntity implements Serializable {

    /***
     * 主键
     */
    private BigInteger id;

    /***
     * 角色id
     */
    private BigInteger roleId;

    /***
     * 环境id
     */
    private BigInteger envId;


    /***
     * 获取主键
     *
     * @return 获取主键
     */
    public BigInteger getId() {
        return id;
    }

    /***
     * 设置主键
     *
     * @param id 主键
     */
    public void setId(BigInteger id) {
        this.id = id;
    }

    /***
     * 获取角色id
     *
     * @return 获取角色id
     */
    public BigInteger getRoleId() {
        return roleId;
    }

    /***
     * 设置角色id
     *
     * @param roleId 角色id
     */
    public void setRoleId(BigInteger roleId) {
        this.roleId = roleId;
    }

    /***
     * 获取环境id
     *
     * @return 获取环境id
     */
    public BigInteger getEnvId() {
        return envId;
    }

    /***
     * 设置环境id
     *
     * @param envId 环境id
     */
    public void setEnvId(BigInteger envId) {
        this.envId = envId;
    }


    @Override
    public String toString() {
        return "RoleEnvEntity{" +
                "id=" + id +

                ",roleId=" + roleId +

                ",envId=" + envId +
                '}';
    }

    //<!--用户自定义代码开始-->
    public IdGenerator idGenerator() {
        return new CruxDevOpsIdGenerator();
    }
    //<!--用户自定义代码结束-->
}
